<?php
namespace Model;

class ObjectArray {

	private $m_objects = array();
        
        public function __construct() {
                
        }
        
        public function add(Object $object) {
            $this->m_objects[] = $object; 
        }
        
        public function get() {
            return $this->m_objects;
        }
}

class Object {
        private $m_Id; //Integer
        private $m_userId; //Integer
        private $m_catId;
		private $m_catName;
        private $m_title; //String
        private $m_desc; //String
        private $m_startPrice; //int
        private $m_endDate; //dateTime
        
        public function __construct($id, $userId, $catId, $catName, $title, $desc, $price, $endDate) {
                $this->m_id = $id;
				$this->m_userId = $userId;
				$this->m_catId = $catId;
				$this->m_catName = $catName;
                $this->m_title = $title;
                $this->m_desc = $desc;
				$this->m_startPrice = $price;
				$this->m_endDate = $endDate;
        }
        
        public function getId() {
                return $this->m_id;
        }
		
		public function getUserId() {
                return $this->m_userId;
        }
		public function getCatId() {
                return $this->m_catId;
        }
        
        public function getTitle() {
                return $this->m_title;
        }
        
        public function getDesc() {
                return $this->m_desc; 
                                
        }
		
		public function getPrice() {
                return $this->m_startPrice; 
                                
        }
		public function getDate() {
                return $this->m_endDate; 
                                
        }
		public function getCatName() {
                return $this->m_catName; 
                                
        }
}